package com.yj.consumer.pojo;

import com.yj.consumer.annotation.CheckLength;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class User {

//    @NotBlank(message = "姓名不能为空")
//    @CheckLength(min=3,max=9)
    private String name;

//    @NotBlank(message = "地址不能为空")
    private String address;

}
